﻿// Copyright (c) 2014 Morten Bakkedal
// This code is published under the MIT License.

using System;

namespace FuncLib.DualFunctions
{
	[Serializable]
	public class DualVariableOrderExceededException : Exception
	{
		private DualVariable[] variables;

		public DualVariableOrderExceededException(params DualVariable[] variables)
		{
			this.variables = (DualVariable[])variables.Clone();
		}

		public DualVariable[] Variables
		{
			get
			{
				return (DualVariable[])variables.Clone();
			}
		}
	}
}
